package com.gensdai.leliang.common.bean;

import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;
import com.gensdai.leliang.entity.Address;

import java.util.List;

/**
 * Created by zsxx on 2017/6/22.
 */

@JsonObject
public class OrderProperInfoBean {


    /**
     * grouthJin : 0
     * totalNum : 0
     * tranferFeeInfoMap : {"fullPostPrice":99,"postageTip":"满99包邮","singleIPostPrice":9.9}
     * ifHasTransferFee : true
     * defaultDaddress : {"address":"明年","blockId":"","cityId":"北京市","createTime":{"date":16,"day":5,"hours":17,"minutes":16,"month":5,"nanos":0,"seconds":7,"time":1497604567000,"timezoneOffset":-480,"year":117},"createUser":"","districtId":"东城区","id":"08431358d09e46a09d4fe305554f9bf4","ifDefault":1,"lastUpdateTime":{"date":16,"day":5,"hours":17,"minutes":16,"month":5,"nanos":0,"seconds":20,"time":1497604580000,"timezoneOffset":-480,"year":117},"lastUpdateUser":"","name":"岁","phone":"15806147963","provinceId":"北京市","relationId":"eaa83cdea00c4996ae4f1e12614bf37d","type":2,"zipCode":""}
     * productInfoMap : [{"attributeName":"洗衣肥皂 220g","proPrice":"0.01","logoPic":"product-img/descr/swsoap/1.jpg","productname":"狮王洗衣肥皂"}]
     * grouthBei : 20
     * tranferFee : 9.9
     * totalPrice : 0.01
     */

    @JsonField  private int grouthJin;
    @JsonField  private int totalNum;
    @JsonField  private TranferFeeInfoMapBean tranferFeeInfoMap;
    @JsonField  private boolean ifHasTransferFee;
    @JsonField  private Address defaultDaddress;
    @JsonField  private double grouthBei;
    @JsonField  private double tranferFee;
    @JsonField  private double totalPrice;
    @JsonField  private List<ProductInfoMapBean> productInfoMap;


    public Address getDefaultDaddress() {
        return defaultDaddress;
    }

    public void setDefaultDaddress(Address defaultDaddress) {
        this.defaultDaddress = defaultDaddress;
    }

    public int getGrouthJin() {
        return grouthJin;
    }

    public void setGrouthJin(int grouthJin) {
        this.grouthJin = grouthJin;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public TranferFeeInfoMapBean getTranferFeeInfoMap() {
        return tranferFeeInfoMap;
    }

    public void setTranferFeeInfoMap(TranferFeeInfoMapBean tranferFeeInfoMap) {
        this.tranferFeeInfoMap = tranferFeeInfoMap;
    }

    public boolean isIfHasTransferFee() {
        return ifHasTransferFee;
    }

    public void setIfHasTransferFee(boolean ifHasTransferFee) {
        this.ifHasTransferFee = ifHasTransferFee;
    }


    public double getGrouthBei() {
        return grouthBei;
    }

    public void setGrouthBei(double grouthBei) {
        this.grouthBei = grouthBei;
    }

    public double getTranferFee() {
        return tranferFee;
    }

    public void setTranferFee(double tranferFee) {
        this.tranferFee = tranferFee;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public List<ProductInfoMapBean> getProductInfoMap() {
        return productInfoMap;
    }

    public void setProductInfoMap(List<ProductInfoMapBean> productInfoMap) {
        this.productInfoMap = productInfoMap;
    }

    @JsonObject
    public static class TranferFeeInfoMapBean {
        /**
         * fullPostPrice : 99
         * postageTip : 满99包邮
         * singleIPostPrice : 9.9
         */

        @JsonField private int fullPostPrice;
        @JsonField private String postageTip;
        @JsonField private double singleIPostPrice;

        public int getFullPostPrice() {
            return fullPostPrice;
        }

        public void setFullPostPrice(int fullPostPrice) {
            this.fullPostPrice = fullPostPrice;
        }

        public String getPostageTip() {
            return postageTip;
        }

        public void setPostageTip(String postageTip) {
            this.postageTip = postageTip;
        }

        public double getSingleIPostPrice() {
            return singleIPostPrice;
        }

        public void setSingleIPostPrice(double singleIPostPrice) {
            this.singleIPostPrice = singleIPostPrice;
        }
    }

    @JsonObject
    public static class ProductInfoMapBean {
        /**
         * attributeName : 洗衣肥皂 220g
         * proPrice : 0.01
         * logoPic : product-img/descr/swsoap/1.jpg
         * productname : 狮王洗衣肥皂
         * singleProNum : 1
         */

        @JsonField private String attributeName;
        @JsonField private String proPrice;
        @JsonField private String logoPic;
        @JsonField private String productname;
        @JsonField private int singleProNum;

        public int getSingleProNum() {
            return singleProNum;
        }

        public void setSingleProNum(int singleProNum) {
            this.singleProNum = singleProNum;
        }

        public String getAttributeName() {
            return attributeName;
        }

        public void setAttributeName(String attributeName) {
            this.attributeName = attributeName;
        }

        public String getProPrice() {
            return proPrice;
        }

        public void setProPrice(String proPrice) {
            this.proPrice = proPrice;
        }

        public String getLogoPic() {
            return logoPic;
        }

        public void setLogoPic(String logoPic) {
            this.logoPic = logoPic;
        }

        public String getProductname() {
            return productname;
        }

        public void setProductname(String productname) {
            this.productname = productname;
        }
    }
}
